x86/svm: Don't unconditionally use a new ASID in svm_invlpg_intercept()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 9 May 2016 17:09:38 +0000 (18:09 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 10 May 2016 17:08:58 +0000 (18:08 +0100)
commiteee511dec9d1f7e2bdfb4aebfe5ffbd70cdf6f51
tree7dcb5e71e7857c18fa530b36d8732a06e956d190
parenta373db28eaa1e9011db00cc6359b8ee1112c80e0
x86/svm: Don't unconditionally use a new ASID in svm_invlpg_intercept()

paging_invlpg() already returns a boolean indicating whether an invalidation
is necessary or not.  A return value of 0 indicates that the specified virtual
address wasn't shadowed (or has already been flushed), cannot currently be
cached in the TLB.

This is a performance optimisation.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Reviewed-by: Tim Deegan <tim@xen.org>
Release-acked-by: Wei Liu <wei.liu2@citrix.com>
xen/arch/x86/hvm/svm/svm.c